<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('历史打款单')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								<label>类型：</label>
								<select type="text" name="typeName">
									<option>商户未结款</option>
								</select>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var prefix = ctx + "settleInfo/settleInfo";

		$(function()  {
            var options = {
                url: prefix + "/merchantUnPay",
		        showSearch: false,
		        showRefresh: false,
		        showToggle: false,
		        showColumns: false,
	            clickToSelect:true,
                columns: [
				{
					field : 'TYPENAME',
					title : '类型'
				},
				{
					field : 'NOSUMAMOUNT',
					title : '未出款金额',
					formatter: function(value, row, index) {
						return $.table.rmbFormatter(value);
					}
				},
				{
					field : 'NOQSAMOUNT',
					title : '交易未清算金额',
					formatter: function(value, row, index) {
						return $.table.rmbFormatter(value);
					}
				},
				{
					field : 'NOCKAMOUNT',
					title : '清算未出款金额',
					formatter: function(value, row, index) {
						return $.table.rmbFormatter(value);
					}
				},
				{
					field : 'FAILAMOUNT',
					title : '出款失败金额',
					formatter: function(value, row, index) {
						return $.table.rmbFormatter(value);
					}
				},
				{
				    field : 'AMOUNT',
				    title : '合计金额',
					formatter: function(value, row, index) {
						return $.table.rmbFormatter(value);
					}
				},
				]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>